import request from '@/utils/request'

// 查询应付账单列表
export function listPayable(query) {
  return request({
    url: '/finance/payable/list',
    method: 'get',
    params: query
  })
}

// 查询应付账单详细
export function getPayable(voucherPayableNo) {
  return request({
    url: '/finance/payable/' + voucherPayableNo,
    method: 'get'
  })
}

// 新增应付账单
export function addPayable(data) {
  return request({
    url: '/finance/payable',
    method: 'post',
    data: data
  })
}

// 修改应付账单
export function updatePayable(data) {
  return request({
    url: '/finance/payable',
    method: 'put',
    data: data
  })
}

// 删除应付账单
export function delPayable(voucherPayableNo) {
  return request({
    url: '/finance/payable/' + voucherPayableNo,
    method: 'delete'
  })
}
